FROM alpine:3.18
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories    #新加的
RUN apk add --no-cache john curl

WORKDIR /work

RUN curl -s https://raw.gitcode.com/hanlinhe110/FACT_core/blobs/c03abe883df8a88b7ead0a97b9862937ea6266de/common.txt > common.txt && \
    curl -s https://raw.gitcode.com/hanlinhe110/FACT_core/blobs/78856ef747b83fd8959c3f900c76d2ec23d6e7d2/honeypot_cap.txt > honeypot_cap.txt && \
    curl -s https://raw.gitcode.com/hanlinhe110/FACT_core/blobs/7d8690c790e1be06191c24ecfdbf486e06114c2a/ssh.txt | awk -F ':' '{print $2}' > ssh.txt && \
    cat common.txt honeypot_cap.txt ssh.txt | sort | uniq > wordlist.txt && \
    rm common.txt honeypot_cap.txt ssh.txt
COPY entry.sh .

ENTRYPOINT ["/work/entry.sh"]
